<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Projects extends CI_Controller {

    public function __construct(){
        parent::__construct();
        
        //$this->load->view('header');
    }
    
    public function index(){
        $this->load->model('Project');
        $data['projects'] = $this->Project->getList();
        $this->load->view('projects/index', $data);
    }
}